home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
softwareupdate
/
system
/
amigados
/
introduction
/
examples.doc
< prev
next >
Wrap
Text File
|
1996-10-10
|
1KB
|
30 lines
1 INTRODUCTION - EXAMPLES
Example 1
This short example examines the Dos library and prints the
current version and revision number.
Example 2
This example demonstrates how to allocate some memory which
has to be long word aligned. We will allocate a FileInfoBlock
structure in this example, but the procedure of allocating
long word aligned memory is the same for all types of
objects.
Example 3
For experienced users only! This example demonstrates how
to create a long word aligned BPTR. The actual BPTR (the
memory used to store the BPTR address in) is long word
aligned. This is rarely needed since you normally only
work with addresses to data blocks which have to be long
word aligned. However, if you ever have to give AmigaDOS
an actual BPTR (not a BPTR address, but the BPTR itself)
you need to allocate it as described in this example.
Example 4
This example contains a useful function which converts hard
to use BSTR (BCPL stings) into normal easy to use C strings.
This example is not directly runnable and must instead be
linked together with some other program.